package com.gxa.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gxa.entity.Account;
import com.gxa.mapper.AccountMapper;
import com.gxa.service.AccountService;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;

@Service
public class AccountServiceImpl extends ServiceImpl<AccountMapper, Account> implements AccountService {

    @Override
    public void decrease(Long userId, BigDecimal money) {
        baseMapper.update(userId, money);
    }
}
